package com.dwd.org.controller;

import com.dwd.org.pojo.Employee;
import com.dwd.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/10 12:30
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "/emp")
public class EmployeeController {

    @Autowired
    private IEmployeeService employeeService;
    @PostMapping
    public List<Employee> queryparent() {
        List<Employee> queryparent = employeeService.queryManager();
        return queryparent;
    }
}
